package com.github.bitsapling.sapling.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * <p>
 * 用户考核规则表：记录考核规则
 * </p>
 *
 */
@TableName("user_rule")
public class UserRule implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    /**
     * 考核名称
     */
    private String name;

    /**
     * 考核指标
     */
    private String metric;

    /**
     * 达标阈值
     */
    private Double threshold;

    /**
     * 考核周期
     */
    private Integer cycleDays;

    /**
     * 未达标惩罚
     */
    private String penalty;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMetric() {
        return metric;
    }

    public void setMetric(String metric) {
        this.metric = metric;
    }

    public Double getThreshold() {
        return threshold;
    }

    public void setThreshold(Double threshold) {
        this.threshold = threshold;
    }

    public Integer getCycleDays() {
        return cycleDays;
    }

    public void setCycleDays(Integer cycleDays) {
        this.cycleDays = cycleDays;
    }

    public String getPenalty() {
        return penalty;
    }

    public void setPenalty(String penalty) {
        this.penalty = penalty;
    }

    @Override
    public String toString() {
        return "UserRule{" +
        "id = " + id +
        ", name = " + name +
        ", metric = " + metric +
        ", threshold = " + threshold +
        ", cycleDays = " + cycleDays +
        ", penalty = " + penalty +
        "}";
    }
}
